package io.itit.ecp.admin.provide.action.resp.largescreen;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


@Data
public class EdificeUsageResp implements Serializable {

    private String edificeId;

    @ApiModelProperty("楼栋名称")
    private String name;

    @ApiModelProperty("定点位置(X轴)")
    private Double posX;

    @ApiModelProperty("定点位置(Y轴)")
    private Double posY;

    // up,bottom, left, right
    @ApiModelProperty("弹窗位置(up,bottom,left,right)")
    private String popPosition;

    @ApiModelProperty("楼栋数据")
    private List<EdificeUsageData> data;

    @Data
    @Accessors(chain = true)
    public static class EdificeUsageData implements Serializable {

        @ApiModelProperty("楼栋数据能源使用总量，碳排放总量，碳排放强度，碳减排总量")
        private String title;

        @ApiModelProperty("总量")
        private BigDecimal value;

        @ApiModelProperty("icon")
        private String icon;

    }
}
